﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmProveedor.aspx.cs" Inherits="Box.Cliente.Logistica.Proveedores.frmProveedor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
      
     <div class="panel panel-primary">
        <div class="panel-heading">
            <h3>Información de Proveedor</h3>
        </div>
        <div class="panel-body">
            <table class="table">
                        <asp:TextBox runat="server" ReadOnly="True" ID="txtId" Visible="false"></asp:TextBox>
                        <tr>
                            <td><label>Empresa * </label></td>
                            <td><asp:TextBox ID="txtEmpresa" MaxLength="80" placeholder="Nombre Empresa" runat="server" Width="350" CssClass="form-control input-sm"/>
                                  <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmpresa" ErrorMessage="Campo Necesario"
                                     ForeColor="Red">*Campo necesario</asp:RequiredFieldValidator><br />
                            <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="txtEmpresa" FilterType="UppercaseLetters, LowercaseLetters, Custom" ValidChars="áéíóú ÁÉÍÓÚ" runat="server"></ajaxToolkit:FilteredTextBoxExtender>
                            </td>
                            <td></td>
                            <td><label>Banco</label></td>
                            <td>
                             <asp:DropDownList 
                             CssClass="form-control input-sm"
                             ID="ddlBanco"
                             ItemType="Box.Entities.Banco"
                             DataTextField="NombreBanco"
                             DataValueField="Id"
                             runat="server"
                             SelectMethod="GetAllBanco" Width="350"/> 
                            </td>
                        </tr>
                        <tr>
                            <td><label>Propietario *</label></td>
                            <td><asp:TextBox ID="txtPropietario" MaxLength="100" placeholder="Propietario" runat="server" Width="350" CssClass="form-control input-sm"/>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtPropietario" ErrorMessage="Campo Necesario"
                                     ForeColor="Red">*Campo necesario</asp:RequiredFieldValidator><br />
                             <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender3" TargetControlID="txtPropietario" FilterType="UppercaseLetters, LowercaseLetters, Custom" ValidChars="áéíóú ÁÉÍÓÚ" runat="server"></ajaxToolkit:FilteredTextBoxExtender>

                            </td>
                            <td></td>
                            <td><label>N° Cuenta *</label></td>
                            <td><asp:TextBox ID="txtCuenta" MaxLength="15" placeholder="N° Cuenta" runat="server" Width="350" CssClass="form-control input-sm"/>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtCuenta" ErrorMessage="Campo Necesario"
                                     ForeColor="Red">*Campo necesario</asp:RequiredFieldValidator><br />
                               <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" TargetControlID="txtCuenta" FilterType="Numbers"  runat="server"></ajaxToolkit:FilteredTextBoxExtender>

                            </td>
                        </tr>
                        <tr>
                            <td><label>RUC *</label></td>
                            <td><asp:TextBox ID="txtRuc" placeholder="RUC/DNI"  MaxLength="11" runat="server" Width="100" CssClass="form-control input-sm"/>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtRuc" ErrorMessage="Campo Necesario"
                                     ForeColor="Red">*Campo necesario</asp:RequiredFieldValidator><br />
                            <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender6" TargetControlID="txtRuc" FilterType="Numbers"  runat="server"></ajaxToolkit:FilteredTextBoxExtender>
                            </td>
                            <td></td>
                            <td><label>E-mail</label></td>
                            <td><asp:TextBox ID="txtEmail" placeholder="E-mail" runat="server" Width="350" CssClass="form-control input-sm"/></td>
                        </tr>
                        <tr>
                            <td><label>Dirección *</label></td>
                            <td><asp:TextBox ID="txtDireccion" placeholder="Dirección" runat="server" Width="350" CssClass="form-control input-sm"/>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtDireccion" ErrorMessage="Campo Necesario"
                                     ForeColor="Red">*Campo necesario</asp:RequiredFieldValidator><br />
                            </td>
                            <td></td>
                            <td><label>Teléfono</label></td>
                            <td><asp:TextBox ID="txtTelefono" placeholder="Teléfono" runat="server" CssClass="form-control input-sm"/></td>
                              <ajaxToolkit:FilteredTextBoxExtender ID="FilteredTextBoxExtender8" TargetControlID="txtTelefono" FilterType="Numbers, Custom" ValidChars="- #*" runat="server"></ajaxToolkit:FilteredTextBoxExtender>
                        </tr>
                        <tr>
                            <td><label>Ubigeo</label></td>
                            <td>
                             
                             <asp:DropDownList 
                             CssClass="form-control input-sm"
                             ID="ddlUbigeo"
                             ItemType="Box.Entities.Ubigeo"
                             DataTextField="Nombre"
                             DataValueField="Id"
                             runat="server"
                             SelectMethod="GetAllUbigeo" Width="350"/> 
                            </td>
                             <td></td>
                        </tr>
                    </table>
        </div>
        <div class="panel-footer">
            <asp:Button runat="server" ID="btnGuardar" CssClass="btn btn-success" Text="Guardar" OnClick="btnGuardar_Click"/>
            <asp:Button runat="server" ID="btnLimpiar" CssClass="btn btn-danger" Text="Atrás" OnClick="btnLimpiar_Click" OnClientClick="return confirm('Desea  salir a Listar Proveedores');"/>
        </div>
        
    </div>
</asp:Content>
